<include file="public:header"/>
<style type="text/css">
.score-input{width:80px;margin:0 5px;text-align:center;border:1px solid #e7e7e7;border-radius:4px;line-height:18px;padding:5px 0;}
</style>
<div class="container">
	<div class="row global-top">
        <div class="col-xs-2">
            <a href="{:U(MODULE_NAME.'/index')}" class="return"></a>
        </div>
        <div class="col-xs-8">
            <div class="text">提现</div>
        </div>
        <div class="col-xs-2">
        </div>
    </div>
</div>
<div class="container">
	<if condition="$user['is_auth'] eq 1">
	<form id="J_recharge_form" action="{:U('user/cash')}" method="post">
	<div class="row mt50 bgwhite">
		<div class="col-xs-12 pt10 pb10 b-b">
			当前余额&nbsp;&nbsp;&nbsp;<span class="f-red">¥{$user.price}</span>
		</div>
		<div class="col-xs-12 pt10 pb10 b-b">
			提现金额&nbsp;&nbsp;<input type="text" class="score-input" name="price" placeholder="提现金额" data-rule-required="true">
		</div>
		<div class="col-xs-12 pt10 pb10 b-b">
			银行卡号&nbsp;&nbsp;{$user.bankid}({$user.bankname})
		</div>
		<div class="col-xs-12 pt10 pb10">
			姓名&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$user.realname}
		</div>
	</div>
	<div class="row mt20">
		<div class="col-xs-12">
			<input type="submit" value="确 认" class="btn pc-100 green radius-4 fs-16">
			<p class="tr fs-12 grey mt5">提现将收取2%金额作为手续费,最低0.01元</p>
			<p class="tr fs-12 grey mt5">提现金额最低100元起,到账时间为T+1个工作日</p>

		</div>
	</div>
	</form>
	<elseif condition="$user['is_auth'] eq 9"/>
	<div class="row mt50 bgwhite">
		<div class="col-xs-12 pt10 pb10 tc">
			你已申请实名认证,去修改<a href="{:U('user/certification')}" class="green">认证信息>></a>
		</div>
	</div>
	<else />
	<div class="row mt50 bgwhite">
		<div class="col-xs-12 pt10 pb10 tc">
			你还没有实名认证,<a href="{:U('user/certification')}" class="green">去认证>></a>
		</div>
	</div>
	</if>
</div>
<if condition="$log">
<div class="container">
	<div class="row mt10">
		<div class="col-xs-12 pt10 grey">
			提现记录
		</div>
	</div>
	<div class="row pt10 pb10">
		<volist name="log" id="val">
		<div class="col-xs-12 mb10">
			<span class="fl green">-{$val.price}</span><if condition="$val['status'] eq 0"><span class="ml10 fl red">(审核中)</span></if><if condition="$val['status'] eq 2"><span class="ml10 fl gray fs-12">(未通过,已返还到余额)</span></if><span class="fr grey fs-12">{$val['add_time']}</span>
			<if condition="$val['status'] eq 9"><p>{$val.remark}</p></if>
		</div>
		</volist>
	</div>
</div>
</if>
<include file="public:footer"/>